import java.io.DataInputStream;
import java.io.EOFException;
import java.io.FileInputStream;
import java.io.IOException;


public class Test {

	public static void main(String[] args) {
		try {
			FileInputStream fis = new FileInputStream("");
			DataInputStream d = new DataInputStream(fis);
			int val = d.readInt();
		} catch(EOFException ee) {
			System.out.println(1);
		} catch(IOException e) {
			System.out.println(2);
		}
	}
	
}
